#include<string.h>
#include<signal.h>
#include"log.hpp"
void myhandler(int signal)
{
    logmessage(Error, "error string: %s, error code: %d", strerror(errno), errno);
    exit(1);
}
int main()
{
    signal(8, myhandler);
    int a = 0;
    int b = 10;
    logmessage(Info, "hello");
    int c = 10 / 0;
    
    
    return 0;
}